﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyTinKM.aspx.cs" Inherits="CungMuaC5.Account_Admin.DanhSachTinKM" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div style="height: auto; width: 100%; background-color: #FFFFFF;">
            <div align="center" style="height: 50px; background-color: #444444; ">
                <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Size="XX-Large" 
                    ForeColor="White" Text="Quản lý tin khuyến mãi"></asp:Label>
            </div>
        </div>
    <div style="background-color: #FFFFFF">
        <div>
            <table style="width:100%;">
                <tr>
                    <td align="right" style="width: 292px; height: 57px">
                        Loại KM:</td>
                    <td style="height: 57px; width: 292px;" align="center">
                        <asp:DropDownList ID="DropDownList1" runat="server" Height="22px" Width="241px">
                            <asp:ListItem>Ăn Uống</asp:ListItem>
                            <asp:ListItem>Du Lịch</asp:ListItem>
                            <asp:ListItem>Giải Trí</asp:ListItem>
                            <asp:ListItem>Thời Trang</asp:ListItem>
                            <asp:ListItem>Công Nghệ</asp:ListItem>
                            <asp:ListItem>Làm đẹp</asp:ListItem>
                            <asp:ListItem>Gia Dụng</asp:ListItem>
                            <asp:ListItem>Đào Tạo</asp:ListItem>
                            <asp:ListItem>Khác</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style="height: 57px" align="right">
                        <asp:ImageButton ID="ImageButton4" runat="server" Height="28px" 
                            ImageUrl="~/Images/themtin.png" 
                            PostBackUrl="~/Account_Admin/QuanLyTinKM/KM_Them.aspx" Width="98px" />
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 292px; height: 37px">
                        Doanh Nghiệp:</td>
                    <td style="height: 37px; width: 292px;" align="center">
                        <asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="233px"></asp:TextBox>
                    </td>
                    <td style="height: 37px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 292px">
                        &nbsp;</td>
                    <td align="center" style="width: 292px">
                        <asp:ImageButton ID="ImageButton3" runat="server" Height="30px" 
                            ImageUrl="~/Images/XemProduct.png" 
                            onclick="ImageButton3_Click" Width="115px" />
                    </td>
                    <td align="right">
                        &nbsp;</td>
                </tr>
            </table>
            </div>
            <div>
                <table style="width: 100%">
                    <tr>
                        <td style="width: 115px">
                            &nbsp;</td>
                        <td>
                            <asp:Label ID="Label15" runat="server" Text="Xem Kết Quả"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            <div>
            </div>
            <div align="right">
            </div>
             <div>
                <table style="width:100%;">
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td align="center">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
             </div>
               <div align="center">
                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                        CellPadding="4" ForeColor="#333333" GridLines="None" Width="805px" 
                        onpageindexchanged="GridView2_PageIndexChanged" 
                        onpageindexchanging="GridView2_PageIndexChanging" 
                        onselectedindexchanged="GridView2_SelectedIndexChanged">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                    <asp:Label ID="Label8" runat="server" Text='<%# Bind("Stt") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Doanh Nghiệp">
                                <ItemTemplate>
                                    <asp:Label ID="Label9" runat="server" Text='<%# Bind("DoanhNghiep") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Khuyến Mãi">
                                <ItemTemplate>
                                    <asp:Label ID="Label10" runat="server" Text='<%# Bind("TenKM") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ngày Bắt Đầu">
                                <ItemTemplate>
                                    <asp:Label ID="Label11" runat="server" Text='<%# Bind("BatDauKM") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Ngày Kết Thúc">
                                <ItemTemplate>
                                    <asp:Label ID="Label12" runat="server" Text='<%# Bind("KetThucKM") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Loại KM">
                                <ItemTemplate>
                                    <asp:Label ID="Label13" runat="server" Text='<%# Bind("LoaiKM") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tình Trạng">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chboxTinhTrang" runat="server" 
                                        Checked='<%# Bind("TinhTrang") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:HyperLinkField DataNavigateUrlFields="MaKM" 
                                DataNavigateUrlFormatString="~/Account_Admin/QuanLyTinKM/KM_Xem.aspx?ma={0}" 
                                Text="Xem" />
                            <asp:HyperLinkField DataNavigateUrlFields="MaKM" 
                                DataNavigateUrlFormatString="~/Account_Admin/QuanLyTinKM/KM_Sua.aspx?ma={0}" 
                                Text="Sửa" />
                            <asp:HyperLinkField DataNavigateUrlFields="MaKM" 
                                DataNavigateUrlFormatString="~/Account_Admin/QuanLyTinKM/QuanLyTinKM.aspx?ma={0}" 
                                Text="Xóa" />
                        </Columns>
                        <EditRowStyle BackColor="#7C6F57" />
                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#E3EAEB" />
                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F8FAFA" />
                        <SortedAscendingHeaderStyle BackColor="#246B61" />
                        <SortedDescendingCellStyle BackColor="#D4DFE1" />
                        <SortedDescendingHeaderStyle BackColor="#15524A" />
                    </asp:GridView>
                 </div>
             </div>
    </div>
    <div align="right" 
        style="background-color: #FFFFFF; height: 27px; font-size: x-large;">
        

</asp:Content>
